package swu.user;

import java.sql.SQLException;
import java.util.List;

public class UserService
{
    UserRepo userRepo;

    public void createCart(User user) throws SQLException
    {
        userRepo.createCart(user);
    }

    public List<User> getAllUsers() throws SQLException
    {
        return userRepo.getAllUsers();
    }

    public Boolean isUserExists(User user) throws SQLException
    {
        return userRepo.isUserExists(user);
    }

    public void addUser(User user) throws SQLException
    {
        userRepo.addUser(user);
    }
}
